package com.itheima;

import java.util.Objects;

public class Test {
    public static void main(String[] args) {
        Teacher t1 = new Teacher("zhangsan", 18);
        Teacher t2 = new Teacher("zhangsan", 20);
        Teacher t3 = new Teacher("zhangsan", 18);
        Teacher t4 = null;
        Teacher t5 = null;
        System.out.println(Objects.equals(t1, t2));
        System.out.println(Objects.equals(t1, t3));
        System.out.println(Objects.equals(t1, t4));
        System.out.println(Objects.equals(t5, t4));
        //System.out.println(t4.equals(t5));

    }

}
